package ACM;

import java.util.Arrays;
import java.util.Scanner;

public class Main_09 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextLine()) {
            String[] strings = scanner.nextLine().split(" ");
            Arrays.sort(strings);
            StringBuilder stringBuilder = new StringBuilder();
            for (String str : strings) {
                stringBuilder.append(str).append(" ");
            }
            System.out.println(stringBuilder.toString());
        }
    }
}
